/**
 * @(#)FoodCommonUpdateRequest.java
 *
 * Copyright (c) 2014-2014  苏州犀牛网络科技有限公司 版权所有
 * xiniunet. All rights reserved.
 *
 * This software is the confidential and proprietary
 * information of  xiniunet.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with xiniunet.
 */
package com.showcal.thermalcontrol.request;

import com.xiniunet.framework.base.BaseUpdateRequest;
import com.xiniunet.framework.constant.RegExpConst;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;


/**
 * Created by 顾志雄 on 2015-11-03 11:23:06.
 * @author 顾志雄
 */
public class FoodCommonUpdateRequest extends BaseUpdateRequest {
    
    /**
     * 主键 
     */
    @NotNull(message = "主键不能为空")
    private  Long   id;
    
    /**
     * 食物ID 
     */
    @NotNull(message = "食物ID不能为空")
    private  Long   foodId;
    
    /**
     * 餐次ID 
     */
    @NotBlank(message = "餐次ID不能为空")
    @Length(min=0, max=50, message = "餐次ID长度不合法")
    private  String   mealId;
    
    /**
     * 食物名称 
     */
    
    @Length(min=0, max=50, message = "食物名称长度不合法")
    private  String   foodName;
    
    /**
     * 单位热量 
     */
    
    @Length(min=0, max=50, message = "单位热量长度不合法")
    private  String   thermalUnit;
    
    /**
     * 单位 
     */
    
    @Length(min=0, max=50, message = "单位长度不合法")
    private  String   unit;
    
    /**
     * 优先级 
     */
    
    @Length(min=0, max=50, message = "优先级长度不合法")
    private  String   priority;
    
    /**
     * 图片URL 
     */
    
    @Length(min=0, max=50, message = "图片URL长度不合法")
    private  String   pictUrl;
    
    /**
     * 物料ID 
     */
    @NotNull(message = "物料ID不能为空")
    private  Long   materielId;
    
    /**
     * 物料小类ID 
     */
    @NotBlank(message = "物料小类ID不能为空")
    @Length(min=0, max=50, message = "物料小类ID长度不合法")
    private  String   materielSmClassid;
    

    
    public Long getId() {
    return this.id;
    }

    public void setId(Long  id) {
    this.id = id;
    }
    
    public Long getFoodId() {
    return this.foodId;
    }

    public void setFoodId(Long  foodId) {
    this.foodId = foodId;
    }
    
    public String getMealId() {
    return this.mealId;
    }

    public void setMealId(String  mealId) {
    this.mealId = mealId;
    }
    
    public String getFoodName() {
    return this.foodName;
    }

    public void setFoodName(String  foodName) {
    this.foodName = foodName;
    }
    
    public String getThermalUnit() {
    return this.thermalUnit;
    }

    public void setThermalUnit(String  thermalUnit) {
    this.thermalUnit = thermalUnit;
    }
    
    public String getUnit() {
    return this.unit;
    }

    public void setUnit(String  unit) {
    this.unit = unit;
    }
    
    public String getPriority() {
    return this.priority;
    }

    public void setPriority(String  priority) {
    this.priority = priority;
    }
    
    public String getPictUrl() {
    return this.pictUrl;
    }

    public void setPictUrl(String  pictUrl) {
    this.pictUrl = pictUrl;
    }
    
    public Long getMaterielId() {
    return this.materielId;
    }

    public void setMaterielId(Long  materielId) {
    this.materielId = materielId;
    }
    
    public String getMaterielSmClassid() {
    return this.materielSmClassid;
    }

    public void setMaterielSmClassid(String  materielSmClassid) {
    this.materielSmClassid = materielSmClassid;
    }
    

}
